﻿@using PagedList.Mvc
@using PagedList;
@using System.Runtime.CompilerServices
@model MyWorkBlogMVC.Models.PostModel
@{
    ViewBag.Title = "Post";
}
@Styles.Render("~/Content/css")

<link href="~/Content/PageContent.css" rel="stylesheet" />
<script src="~/Scripts/jquery-1.10.2.min.js"></script>
<script src="~/Scripts/blogscriptcontent.js"></script>
<div class="jumbotron">
    <img src="~/Content/blogme.PNG" />
</div>
<div class="body_wrapper">
    <p class="lead">
        <div class="postHeader">
            <h1>About Blogger</h1>
            <h2>@Model.BlogName</h2>
            First Name: @Model.FirstName<br />
            Last Name: @Model.LastName<br />
            Country: @Model.Country<br />
            Date of Birth: @Model.DateOfBirth.ToString("D")<br/>
            Blog description: <a href="#" class="exp">Show</a>
            <div class="expandme">@Model.Description
                <a href="#" class="hideDescription">Hide description</a>  <br />
            </div> 
           

        </div>
        <div class="postInfo">
            <h3>Currently listed blogposts:</h3>
            <ul>
                
                @foreach (var post in @Model.BlogPosts)
                {
                    <li> @Html.ActionLink(@post.PostTitle, "PostWithContent", new { id = post.BlogPostId })</li>
                }
            </ul>
        </div>
        @Html.PagedListPager(@Model.BlogPosts, page=>Url.Action("Post", new{page}))
    </p>
</div>
